package edu.suda.xsap.service;
import edu.suda.xsap.dto.MemberDto;
import edu.suda.xsap.entity.Member;

import java.util.List;

public interface MemberService {
    void delete(Integer id);
    List<MemberDto> findAll();
    MemberDto findById(Integer id);
    MemberDto findByName(String name);
    void save(Member member);
    void update(Member member);
    List<MemberDto> searchByQuery(String query);

    int getMemberCount();
}
